package glassline.mock;
import transducer.*;

public class MockGUI extends MockAgent implements TReceiver{

	Transducer myTransducer;
	
	public EventLog log = new EventLog();

	public MockGUI(Transducer t, String name){
		super(name);
		myTransducer = t;
		myTransducer.register(this, TChannel.GUI);
	}

	@Override
	public void eventFired(TChannel channel, TEvent event, Object[] args) {
		switch(channel){
		case GUI:
			switch(event){
			case GLASSDONE:
				System.out.println("Glass has been finished.  Stopping the conveyor...");
				break;
			case STARTSHIPPERCONVEYOR:
				System.out.println("Starting the conveyor...");
				break;
			case STOPSHIPPERCONVEYOR:
				System.out.println("Stopping the conveyor...");
				break;
			}
			break;
		case CONTROL_PANEL:
			break;
		}

	}


}
